/**
 * “前台管理”相关接口
 */
import request from '@/utils/request'

export default {
  /** listInfo.vue--开始 **/
  /** listInfo.vue--结束 **/
  /** deliverGoods.vue--开始 **/
  /** 配送接口 **/
  deliverOrderNext(params){
    let data = {
      id: params.id,
      orderStatus: 40,
      invoiceNo: params.invoiceNo,
      shippingTime: params.nowTime,
    };
    return request({
      url: 'shopOrderInfo/data/updateById',
      method: 'post',
      data
    })
  },
  /** deliverGoods.vue--结束 **/
  /** 公共接口功能--开始 **/
  initOrderList(params) {
    const data = {
      orderStatusList: params.orderStatusList,
      orderSn: params.orderSn,
      phone: params.phone,
      createDate: params.createDate
    };
    console.log(data);
    return request({
      url: 'shopOrderInfo/infoByPage?page='+params.currentPage+'&size='+params.pagesize,
      method: 'post',
      data
    })
  },
  /** 公共接口功能--开始 **/
}
